package com.yanqu.road.server.timer.unioncampwar;

import com.yanqu.road.server.manger.unioncampwar.UnionCampWarPatronsMgr;
import com.yanqu.road.utils.executor.GeneralTask;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Description 检查回合是否变化，并操作
 */
public class UnionCampWarTask extends GeneralTask {
    protected Logger logger = LogManager.getLogger(UnionCampWarTask.class.getName());

    @Override
    public void doRun() {
        try {
            UnionCampWarPatronsMgr.takePatronsTask();
        }catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
    }
}

